"use strict";

const { exec } = require("child_process");
var _logSymbols = require("log-symbols");
var _chalk = require("chalk");

var _chalk2 = _interopRequireDefault(_chalk);

var _logSymbols2 = _interopRequireDefault(_logSymbols);

var _repairIOS = require("./utils/repair_ios");

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : { default: obj };
}

let repair = async () => {
  let res = await _repairIOS.repairIOS();
  if (res === "get") {
    console.log("->repair done😄 please try to command: npm run ios");
  } else {
    console.log(
      _logSymbols2.default.error,
      _chalk2.default.red(
        `please check react native module (/node_modules/react-native/)`
      )
    );
  }
};

module.exports = repair;
